package com.whminwei.edu.api.base.dto.fspn;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 专业列表
 *
 * @author wangy
 * @since 2024/4/21
 */
@Data
public class SpecialityFspn {

    @JsonValue
    private List<SpecialityBo> specialityList;

    public SpecialityFspn() {
    }

    @JsonCreator
    public SpecialityFspn(List<SpecialityBo> specialityList) {
        this.specialityList = specialityList;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SpecialityBo {
        private String specialityId;
        private String specialityCode;
        private String specialityName;
        /**
         * 目录类型（办学层次）
         */
        private String dirType;

        private String dirName;

        private String dirVersion;
        /**
         * 专业目录类型
         */
        private String dirSourceType;
    }
}
